package com.pkk.components.rpc.response;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 响应头信息
 * @author: peikunkun
 * @create: 2018-08-13 18:03
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResponseHeader<K, V> implements Serializable {

  /**
   * 状态码
   */
  private K code;
  /**
   * 状态描述
   */
  private V message;
  /**
   * 返回的时间戳
   */
  private final String timestamp = String.valueOf(System.currentTimeMillis());


}
